home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / gadgets / calendar.m < prev    next >
Encoding:
Text File  |  2001-10-28  |  2.2 KB  |  51 lines

  1. /*
  2. **  $VER: calendar.h 42.3 (14.2.94)
  3. **  Includes Release 42.1
  4. **
  5. **  Definitions for the calendar BOOPSI gadget class
  6. **
  7. **  (C) Copyright 1994 Commodore-Amiga Inc.
  8. **  All Rights Reserved
  9. */
  10. /*****************************************************************************/
  11. //MODULE 'utility/date','intuition/gadgetclass'
  12. MODULE 'utility/tagitem'
  13. /*****************************************************************************/
  14. #define DL_TEXTPEN    0
  15. #define DL_BACKGROUNDPEN  1
  16. #define DL_FILLTEXTPEN    2
  17. #define DL_FILLPEN    3
  18. #define MAX_DL_PENS     4
  19. /*****************************************************************************/
  20. /* This structure is used to describe the days of the month */
  21. OBJECT tagDayLabel                   /* WAS: typedef struct ... */
  22.   dl_Label:PTR TO UBYTE,        /* Label */
  23.   dl_Pens[MAX_DL_PENS]:WORD,    /* Pens */
  24.   dl_Attrs:PTR TO TagItem,      /* Additional attributes */
  25.   dl_Flags:ULONG                /* Control flags */
  26.  
  27. /*****************************************************************************/
  28. #define DLF_SELECTED  (1<<0)
  29. #define DLF_DISABLED  (1<<1)
  30. /*****************************************************************************/
  31. /* Additional attributes defined by the calendar.gadget class */
  32. #define CALENDAR_Dummy    (TAG_USER+0x4000000)
  33. #define CALENDAR_Day    (CALENDAR_Dummy+1)
  34. /* (LONG) Day of the week */
  35. #define CALENDAR_ClockData  (CALENDAR_Dummy+2)
  36. /* (struct ClockData *) defining clock data */
  37. #define CALENDAR_FirstWeekday   (CALENDAR_Dummy+3)
  38. /* (LONG) First day of the week.  Default is 0 for Sunday. */
  39. #define CALENDAR_Days     (CALENDAR_Dummy+4)
  40. /* (STRPTR *) Text for days of the week */
  41. #define CALENDAR_Multiselect  (CALENDAR_Dummy+5)
  42. /* (BOOL) Can more than one day be selected at a time.  Defaults
  43.      * to FALSE. */
  44. #define CALENDAR_Labels     (CALENDAR_Dummy+6)
  45. /* (DayLabelP) Array of labels for the days of the month.  Optional,
  46.      * but if provided, must be an array of 31 entries. */
  47. #define CALENDAR_Label    (CALENDAR_Dummy+7)
  48. /* (BOOL) Indicate whether there should be a label across the top
  49.      * showing the names of the days of the week.  Defaults to TRUE. */
  50. /*****************************************************************************/
  51.